//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>

//Incluyendo cosas propias
#include "../clases/Warrior.h"

//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
   TImage *Image1;
   TImage *Image2;
   TLabel *Label1;
   TLabel *Label2;
   TLabel *Label3;
   TLabel *Label4;
   TLabel *Label5;
   TLabel *Label6;
   TLabel *Label7;
   TLabel *Label8;
   TLabel *Label9;
   TLabel *Label10;
   TLabel *Label11;
   TLabel *Label12;
   TListBox *lbHistorial;
   TLabel *lHP1;
   TLabel *lAtaque1;
   TLabel *lDefensa1;
   TLabel *lAcierto1;
   TLabel *lEsquiva1;
   TLabel *lRegeneracion1;
   TLabel *lHP2;
   TLabel *lAtaque2;
   TLabel *lAcierto2;
   TLabel *lEsquiva2;
   TLabel *lRegeneracion2;
   TLabel *lDefensa2;
   TLabel *Label15;
   TLabel *Label16;
   TLabel *lVelocidad1;
   TLabel *lVelocidad2;
   TLabel *Label17;
   TLabel *lVictoria;
   TRadioGroup *rgAccion1;
   TRadioGroup *rgAccion2;
   TButton *bTurno;
    TLabel *Label13;
    TLabel *Label14;
    TLabel *lMagia1;
    TLabel *lMagia2;
    TButton *bRestart;
   TLabel *lWarrior1;
   TLabel *lWarrior2;
   void __fastcall bTurnoClick(TObject *Sender);
    void __fastcall bRestartClick(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
   __fastcall TForm1(TComponent* Owner);
   Warrior base_warrior1;
   Warrior base_warrior2;
   void TForm1::rellenarAtributos();
   void TForm1::game_over(TLabel*, TLabel*,bool);
   void TForm1::realizarTurno(int,Warrior &guerrero,Warrior &defensor);
   void TForm1::imprimirmagia(Warrior &mago,Warrior &enemy,int** efects);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;

//---------------------------------------------------------------------------
#endif
